<div id="datasheets">
	<h1>Vail Datasheets</h1>
	<% @datasheets.each do |datasheet| %>
		<div class="datasheet_link">
			<div class="download_link">
				Download the <%= link_to datasheet.name, datasheet.public_filename %> datasheet.
			</div>
			<div class="download_icon">
				<%= link_to image_tag("/images/downLoad_30x30.png"), datasheet.public_filename %>
			</div>
			
			<% if logged_in? %>
				<div class="right">
					<li class="horizontal">
						<%= link_to "Delete", datasheet_path(datasheet), :confirm => "Are you sure?", :method => :delete %>
					</li>
				</div>
			<% end %>

		</div>
	<% end %>
</div>